{extend name="layout" /}
{block name="head"}
<style>
    html{background: #FFF;}
</style>
{/block}
{block name="page"}
<table id="dataTable" lay-filter="dataTable"></table>
{/block}
{block name="js"}
<script>
    layui.config({
        base: '__STATIC__/js/'
    }).use(['app'], function () {
        var app=layui.app;
        var table=layui.table;
        table.render({
            elem: '#dataTable'
            ,url: window.location.href //数据接口
            ,page: app.page_config //开启分页
            ,cols: [[ //表头
                {field: 'ip', title: 'IP', width:250}
                ,{field: 'time', title: '登录时间'}
            ]]
        });
    });
</script>
{/block}